            <%@include file="../recursos/sesion.jsp" %>
            <%@include file="../recursos/headers.jsp" %>
            <%@include file="../recursos/calendario.jsp" %>
            <div id="titulo"><bean:message key="ciclos.titulo" /></div>
            <html:form action="/CiclosAction">
                <logic:present name="error">
                    <span id="error"><bean:message key="${error}" /></span>
                </logic:present>
                <table>
                    <tr>
                        <td colspan="2"><center><span class="requeridos"><bean:message key="label.requeridos"/></span></center></td>
                    </tr>
                    <tr>
                        <th><bean:message key="ciclos.expediente" /><span class="requeridos">*</span>:</th>
                        <td><html:text property="expediente" maxlength="10" value="${ciclos.expediente}"/></td>
                    </tr>
                    <tr>
                        <th><bean:message key="ciclos.metilpredmisolona" /><span class="requeridos">*</span>:</th>
                        <td><html:text property="metilpredmisolona" value="${ciclos.metilpredmisolona}"/></td>
                    </tr>
                    <tr>
                        <th><bean:message key="ciclos.mofetilo" /><span class="requeridos">*</span>:</th>
                        <td><html:text property="mofetilo" value="${ciclos.mofetilo}"/></td>
                    </tr>
                </table>
                <fieldset>
                    <legend><bean:message key="ciclos.1" /></legend>
                    <table>
                        <tr>
                            <th><bean:message key="ciclos.c1" />:</th>
                            <td><html:text property="c11" value="${ciclos.c11}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c2" />:</th>
                            <td><html:text property="c12" value="${ciclos.c12}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c3" />:</th>
                            <td><html:text property="c13" value="${ciclos.c13}" styleId="fecha1" size="17" /><img src="<%=request.getContextPath() %>/recursos/css/img/c.png" id="f_1" /></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend><bean:message key="ciclos.2" /></legend>
                    <table>
                        <tr>
                            <th><bean:message key="ciclos.c1" />:</th>
                            <td><html:text property="c21" value="${ciclos.c21}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c2" />:</th>
                            <td><html:text property="c22" value="${ciclos.c22}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c3" />:</th>
                            <td><html:text property="c23" value="${ciclos.c23}" styleId="fecha2" size="17" /><img src="<%=request.getContextPath() %>/recursos/css/img/c.png" id="f_2" /></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend><bean:message key="ciclos.3" /></legend>
                    <table>
                        <tr>
                            <th><bean:message key="ciclos.c1" />:</th>
                            <td><html:text property="c31" value="${ciclos.c31}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c2" />:</th>
                            <td><html:text property="c32" value="${ciclos.c32}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c3" />:</th>
                            <td><html:text property="c33" value="${ciclos.c33}" styleId="fecha3" size="17" /><img src="<%=request.getContextPath() %>/recursos/css/img/c.png" id="f_3" /></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend><bean:message key="ciclos.4" /></legend>
                    <table>
                        <tr>
                            <th><bean:message key="ciclos.c1" />:</th>
                            <td><html:text property="c41" value="${ciclos.c41}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c2" />:</th>
                            <td><html:text property="c42" value="${ciclos.c42}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c3" />:</th>
                            <td><html:text property="c43" value="${ciclos.c43}" styleId="fecha4" size="17" /><img src="<%=request.getContextPath() %>/recursos/css/img/c.png" id="f_4" /></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend><bean:message key="ciclos.5" /></legend>
                    <table>
                        <tr>
                            <th><bean:message key="ciclos.c1" />:</th>
                            <td><html:text property="c51" value="${ciclos.c51}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c2" />:</th>
                            <td><html:text property="c52" value="${ciclos.c52}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c3" />:</th>
                            <td><html:text property="c53" value="${ciclos.c53}" styleId="fecha5" size="17" /><img src="<%=request.getContextPath() %>/recursos/css/img/c.png" id="f_5" /></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend><bean:message key="ciclos.6" /></legend>
                    <table>
                        <tr>
                            <th><bean:message key="ciclos.c1" />:</th>
                            <td><html:text property="c61" value="${ciclos.c61}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c2" />:</th>
                            <td><html:text property="c62" value="${ciclos.c62}"/></td>
                        </tr>
                        <tr>
                            <th><bean:message key="ciclos.c3" />:</th>
                            <td><html:text property="c63" value="${ciclos.c63}" styleId="fecha6" size="17" /><img src="<%=request.getContextPath() %>/recursos/css/img/c.png" id="f_6" /></td>
                        </tr>
                    </table>
                </fieldset>
                <table>
                    <tr>
                        <th>
                            <html:hidden property="id"/>
                            <logic:notPresent name="ciclos">
                                <html:button property="ingresar" onclick="javascript: enviar('insertar');"><bean:message key="label.Insertar" /></html:button>
                            </logic:notPresent>
                            <logic:present name="ciclos">
                                <html:button property="actualizar" onclick="javascript: enviar('actualizar');"><bean:message key="label.actualizar" /></html:button>
                            </logic:present>
                        </th>
                        <th>
                            <html:button property="limpiar" onclick="javascript: clean();"><bean:message key="btn.limpiar" /></html:button>
                            <html:hidden property="method" value="" styleId="method" />
                        </th>
                    </tr>
                </table>
            </html:form>
            <div id="error"><html:errors /></div><br />
            <div id="tablas">
                <display:table id="Ciclos" name="Ciclos" pagesize="10" requestURI="/TablasCiclos.do?method=listado">
                    <display:column titleKey="label.Modificar">
                        <html:link action="${request.getContextPath()}/CiclosAction.do?method=modificar&id=${Ciclos.id}&expediente=${Ciclos.expediente}&metilpredmisolona=${Ciclos.metilpredmisolona}&mofetilo=${Ciclos.mofetilo}&c11=${Ciclos.c11}&c12=${Ciclos.c12}&c13=${Ciclos.c13}&c21=${Ciclos.c21}&c22=${Ciclosc22}&c23=${Ciclos.c23}&c31=${Ciclos.c31}&c32=${Ciclos.c32}&c33=${Ciclos.c33}&c41=${Ciclos.c41}&c42=${Ciclos.c42}&c43=${Ciclos.c43}&c51=${Ciclos.c51}&c52=${Ciclos.c52}&c53=${Ciclos.c53}&c61=${Ciclos.c61}&c62=${Ciclos.c62}&c63=${Ciclos.c63}">
                            <img src="<%=request.getContextPath()%>/recursos/editar.png" /><span><bean:message key="label.Modificar" /></span>
                        </html:link>
                    </display:column>
                    <display:column titleKey="label.Borrar">
                        <html:link action="${request.getContextPath()}/CiclosAction.do?method=eliminar&id=${Ciclos.id}&expediente=${Ciclos.expediente}&metilpredmisolona=${Ciclos.metilpredmisolona}&mofetilo=${Ciclos.mofetilo}">
                            <img src="<%=request.getContextPath()%>/recursos/borrar.png" /><span><bean:message key="label.Borrar" /></span>
                        </html:link>
                    </display:column>
                    <display:column titleKey="ciclos.expediente" property="expediente" />
                    <display:column titleKey="ciclos.metilpredmisolona" property="metilpredmisolona" />
                    <display:column titleKey="ciclos.mofetilo" property="mofetilo" />
                    <display:column />
                    <display:column titleKey="ciclos.c11" property="c11" />
                    <display:column titleKey="ciclos.c12" property="c12" />
                    <display:column titleKey="ciclos.c13" property="c13" />
                    <display:column />
                    <display:column titleKey="ciclos.c21" property="c21" />
                    <display:column titleKey="ciclos.c22" property="c22" />
                    <display:column titleKey="ciclos.c23" property="c23" />
                    <display:column />
                    <display:column titleKey="ciclos.c31" property="c31" />
                    <display:column titleKey="ciclos.c32" property="c32" />
                    <display:column titleKey="ciclos.c33" property="c33" />
                    <display:column />
                    <display:column titleKey="ciclos.c41" property="c41" />
                    <display:column titleKey="ciclos.c42" property="c42" />
                    <display:column titleKey="ciclos.c43" property="c43" />
                    <display:column />
                    <display:column titleKey="ciclos.c51" property="c51" />
                    <display:column titleKey="ciclos.c52" property="c52" />
                    <display:column titleKey="ciclos.c53" property="c53" />
                    <display:column />
                    <display:column titleKey="ciclos.c61" property="c61" />
                    <display:column titleKey="ciclos.c62" property="c62" />
                    <display:column titleKey="ciclos.c63" property="c63" />
                </display:table>
            </div>
            <script type="text/javascript">//<![CDATA[
                var dia = new Date();
                var actual = dia.getFullYear() + "-" +
                    ((dia.getMonth() + 1 < 10)? "0" + (dia.getMonth() + 1) : dia.getMonth()+ 1) + "-" +
                    ((dia.getDate() < 10)? ("0" + dia.getDate()) : dia.getDate());
                for (var i=1; i<7; i++){
                    new Calendar({
                    inputField: "fecha" + i, dateFormat: "%Y-%m-%d", max: new Date(),
                    trigger: "f_" + i, bottomBar: false, onSelect: function() { this.hide(); }});
                    <logic:notPresent name="ciclos">
                        document.getElementById("fecha" + i).value = actual;
                    </logic:notPresent>
                    }
            //]]></script>